package com.sand.feign;

import com.sand.dto.merchant.StageDelete;
import com.sand.entity.conclude.contract;
import com.sand.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("juao-merchant")
public interface MerchantFegin {

    /**
     * 删除预购
     */
    @PostMapping("/stage/down")
    ResponseResult<Integer> down(@RequestBody StageDelete stageDelete);


    /**
     * 查看合同
     */
    @PostMapping("/contract/get")
    public ResponseResult<contract> get(@RequestBody Integer id);

    /**
     * 完成合同
     */
    @PostMapping("/contract/ok")
    public ResponseResult<Integer> ok(@RequestBody Integer contractid);

}
